function myReload(){
  document.getElementById("createCheckCode").src=
	  document.getElementById("createCheckCode").src + "?nocache="+new Date().getTime();
  $("#checkcode").focus();
};

function doLogin(){
	var username = $("#username").val();
	var userpass = $("#userpass").val();
	var checkcode = $("#checkcode").val();
	var comit_data = "username="+username+"&userpass="+userpass+"&checkcode="+checkcode;
	$.ajax({
		   type: "GET",
		   url: "/jpql/admin/user/dologin",
		   data: comit_data,
		   success: function(msg){
			   if(msg.result_code != 200){
				   alert( "获取数据失败:" + msg.result_msg );
				   return;
			   }
		       $(location).attr('href', '/jpql/admin/tomain');
		   }
	});
};

